package com.nanshututeng.dao;

import com.nanshututeng.DynamicSQL.UserDynaProvider;
import com.nanshututeng.model.UserBean;
import com.nanshututeng.model.testBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018-09-20.
 */
@Mapper
public interface UserMapper {
@SelectProvider(type = UserDynaProvider.class,method = "selectuserWithParam")
    List<UserBean> selectuserWithParam(Map<String,Object> param);
@Select("select * from gyb_user")
    List<UserBean>selectuser();

@Select("select top 2 userid,phone from gyb_user")
    List<testBean> select();
}
